package com.magicmovie.service;

import com.magicmovie.entity.IndexCategory;
import com.magicmovie.entity.IndexMovie;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
public interface IndexCategoryService {

    @RequestMapping(value = "/indexCategory/deleteByPrimaryKey", method = RequestMethod.GET)
    int deleteByPrimaryKey(Integer id);

    @RequestMapping(value = "/indexCategory/insert", method = RequestMethod.POST)
    int insert(@RequestBody IndexCategory record);

    @RequestMapping(value = "/indexCategory/selectByPrimaryKey", method = RequestMethod.GET)
    IndexCategory selectByPrimaryKey(Integer id);

    @RequestMapping(value = "/indexCategory/updateByPrimaryKey", method = RequestMethod.POST)
    int updateByPrimaryKey(@RequestBody IndexCategory record);

    @RequestMapping(value = "/indexCategory/findAll", method = RequestMethod.GET)
    List<IndexCategory> findAll();

    @RequestMapping(value = "/indexCategory/selectByParams", method = RequestMethod.POST)
    List<IndexCategory> selectByParams(@RequestBody Map<String,Object> params);
}
